From: Ian Campbell Date: Tue, 26 Jun 2012 15:23:58 +0000 (+0100) Subject: arm: map fixmaps non-executable. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~8287 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=e225e4c702012017ebced7c9d13a745481956033;p=xen.git arm: map fixmaps non-executable. Signed-off-by: Ian Campbell Acked-by: Stefano Stabellini Committed-by: Ian Campbell --- diff --git a/xen/arch/arm/mm.c b/xen/arch/arm/mm.c index 715a98a32a..40ac176ce3 100644 --- a/xen/arch/arm/mm.c +++ b/xen/arch/arm/mm.c @@ -106,6 +106,7 @@ void set_fixmap(unsigned map, unsigned long mfn, unsigned attributes) lpae_t pte = mfn_to_xen_entry(mfn); pte.pt.table = 1; /* 4k mappings always have this bit set */ pte.pt.ai = attributes; + pte.pt.xn = 1; write_pte(xen_fixmap + third_table_offset(FIXMAP_ADDR(map)), pte); flush_xen_data_tlb_va(FIXMAP_ADDR(map)); }